#define SECTORSIZE 512

typedef struct data_t {
	char buf[SECTORSIZE];
} Data;

extern FILE *disk;
extern int time, last_sector;

void OpenDisk(char *name);
void SeekIt(int sector);
void ReadIt(Data *data);
void WriteIt(Data *data);
void CloseDisk();
void GetSeekTime();